﻿@model System.DateTime?

@if (Model.HasValue && Model.Value != DateTime.MinValue)
{ 
   @Html.TextBoxFor(m => Model, new { @class = "datetime", @Value = Model.Value.ToString("yyyy-MM-dd")  })
}
else
{     
   @Html.TextBoxFor(m => Model, new { @class = "datetime", @Value = "" })
}
